package com.team1.system.librarystock.domain;

import com.team1.common.annotation.Excel;
import com.team1.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 图书库存管理对象 library_stock
 *
 * @author hyy
 * @date 2023-04-16
 */
public class LibraryStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存id */
    private Long stockId;

    /** 图书id */
    @Excel(name = "图书id")
    private Long bookId;

    /** 图书库存 */
    @Excel(name = "图书库存")
    private Long bookStock;

    /** 图书位置 */
    @Excel(name = "图书位置")
    private String bookLocation;

    /** 备用字段1 */
    @Excel(name = "备用字段1")
    private String tag1;

    /** 备用字段2 */
    @Excel(name = "备用字段2")
    private String tag2;

    public void setStockId(Long stockId)
    {
        this.stockId = stockId;
    }

    public Long getStockId()
    {
        return stockId;
    }
    public void setBookId(Long bookId)
    {
        this.bookId = bookId;
    }

    public Long getBookId()
    {
        return bookId;
    }
    public void setBookStock(Long bookStock)
    {
        this.bookStock = bookStock;
    }

    public Long getBookStock()
    {
        return bookStock;
    }
    public void setBookLocation(String bookLocation)
    {
        this.bookLocation = bookLocation;
    }

    public String getBookLocation()
    {
        return bookLocation;
    }
    public void setTag1(String tag1)
    {
        this.tag1 = tag1;
    }

    public String getTag1()
    {
        return tag1;
    }
    public void setTag2(String tag2)
    {
        this.tag2 = tag2;
    }

    public String getTag2()
    {
        return tag2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("stockId", getStockId())
            .append("bookId", getBookId())
            .append("bookStock", getBookStock())
            .append("bookLocation", getBookLocation())
            .append("tag1", getTag1())
            .append("tag2", getTag2())
            .toString();
    }
}
